package com.addplus.townmall.server.api.model.town;

import com.addplus.townmall.server.api.model.base.BaseMonogoModel;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.mongodb.morphia.annotations.Entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 类名: ShopSkuModel
 *
 * @author zhangjiehang
 * @version V1.0
 * @date 2018/11/3 5:50 PM
 * @description 类描述:商品sku表mongodb
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Entity("ShopSkuModel")
public class ShopSkuModel extends BaseMonogoModel implements Serializable {
    private static final long serialVersionUID = -1166085607767213688L;

    /**
     * 商品主键id
     */
    private Integer shopProductId;
    /**
     * 商品规格表主键id
     */
    private Integer shopSpecificationSkuId;
    /**
     * 商品类型(1:普通 2:拼团)
     */
    private Integer type;
    /**
     * 规格值描述
     */
    private String skuDescribe;
    /**
     * 库存值
     */
    private Integer stock;
    /**
     * 规格编码
     */
    private String specificationCode;
    /**
     * 销售价格
     */
    private BigDecimal salePrice;
    /**
     * 成本价格
     */
    private BigDecimal costPrice;
    /**
     * 原价格
     */
    private BigDecimal linePrice;
    /**
     * 商品优惠价格
     */
    private BigDecimal discountPrice;
    /**
     * 限制购买数量
     */
    private Integer limitNum;
}
